<!DOCTYPE html>
<html>
<head>
    <title><?php echo $title; ?> // BackOffice</title>
	<link rel="stylesheet" href="<?php echo site_url('public/css/style.css'); ?>" />
	<link rel="stylesheet" href="<?php echo site_url('public/css/chosen.css'); ?>" />
	<?php echo script_tag('public/js/jquery.js'); ?>
	<?php echo script_tag('public/js/modal.js'); ?>
	<?php echo script_tag('public/js/dropdown.js'); ?>
	<?php echo script_tag('public/js/chosen.js'); ?>
	
	<?php echo script_tag('public/js/ui.js'); ?>
	<?php echo script_tag('public/js/ui-core.js'); ?>
	<?php echo script_tag('public/js/ui-mouse.js'); ?>
	<?php echo script_tag('public/js/ui-sortable.js'); ?>
	<?php echo script_tag('public/js/ui-widget.js'); ?>
    
    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <style>
        section { padding-top: 20px; }
		#masthead {
			background-color: #049cd9;
			background-repeat: no-repeat;
			background-image: -webkit-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
			background-image: -webkit-linear-gradient(#004D9F, #049cd9);
			background-image: -moz-linear-gradient(#004D9F, #049cd9);
			background-image: -o-linear-gradient(top, #004D9F, #049cd9);
			background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
			filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#004D9F', endColorstr='#049cd9', GradientType=0); /* IE8 and down */
			min-width: 1020px;
		}
		#main-content { min-height: 500px; }
    </style>
	
</head>
<body>
	<!--[if IE]><script src="<?php echo site_url('public/js/ie6/warning.js');?>"></script><script>window.onload=function(){e("<?php echo site_url('public/js/ie6');?>/")}</script><![endif]-->
    <!-- header -->
	<header id="masthead">
		<div class="grid">
			<div class="container-fluid">
				<h1 class="pull-left">BackOffice - San Miguel PureFoods</h1>
				<p class="pull-right">You are logged in as <?php echo '[' . $this->user['role_name'] . '] ' . $this->user['firstname'] . ' ' . $this->user['lastname']; ?>. <?php echo anchor('logout', 'Logout?'); ?></p>
			</div>
		</div>
	</header>
    <div class="topbar">
        <div class="topbar-inner">
            <div class="container-fluid">
                <ul class="nav pull-left">
					<?php $this->auth->show_menu(); ?>
                </ul>
            </div>
        </div>
    </div>
    <!-- main content -->
	
    <div id="main-content" class="container-fluid">
        <?php $this->view($content); ?>
    </div>
	<!-- footer -->
	<footer class="footer">
		<div class="container-fluid">
			<p class="pull-left">BackOffice v1.0 - San Miguel PureFoods &copy; 2011 <br/> Snapworx Digital (Gene, JA, Mark, Mac)</p>
			<p class="pull-right">{elapsed_time}</p>
		</div>
	</footer>
	<?php echo script_tag('public/js/scripts.js'); ?>
</body>
</html>